package com.wm.person;

public class PM extends Employee{
    private String yearsOfExperience;

    public PM() {

    }

    public PM(String name, String address, String telphone, String email, String office, double salary, String hiredate, String yearsOfExperience) {
        super(name, address, telphone, email, office, salary, hiredate);
        this.yearsOfExperience = yearsOfExperience;
    }

    public String getYearsOfExperience() {
        return yearsOfExperience;
    }

    public void setYearsOfExperience(String yearsOfExperience) {
        this.yearsOfExperience = yearsOfExperience;
    }
    public void show(){
        System.out.println("姓名:" + super.getName());
        System.out.println("地址:" + super.getAddress());
        System.out.println("电话号码:" + super.getTelphone());
        System.out.println("电子邮件:" + super.getEmail());
        System.out.println("办公室:" + super.getOffice());
        System.out.println("工资:" + super.getSalary());
        System.out.println("受雇日期:" + super.getHiredate());
        System.out.println("管理经验:" + this.getYearsOfExperience());
    }
}
